package com.aichan.aibi.model.dto.user;

import java.io.Serial;
import java.io.Serializable;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * @author mengyu
 * @date 2024/03/03 9:40
 */
@Data
public class UserAddRequest implements Serializable {

    /**
     * 账号
     */
    @NotBlank(message = "userAccount is required")
    private String userAccount;

    /**
     * 密码
     */
    @NotBlank(message = "password is required")
    private String password;

    /**
     * 邮箱
     */
    @NotBlank(message = "email is required")
    private String email;

    /**
     * 用户角色: user, admin
     */
    @NotBlank(message = "userRole is required")
    private String userRole;

    @Serial
    private static final long serialVersionUID = 1L;
}